﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DatabaseStuff
{
    /// <summary>
    /// Interface for manipulating a single record entry in a database table
    /// </summary>
    public interface IDBRecord
    {
        /// <summary>
        /// Get the table which this record exists in
        /// </summary>
        IDBTable Table { get; }

        /// <summary>
        /// Gets the data associated with the specified field in this record
        /// </summary>
        IDBData this[IDBField field] { get; }

        /// <summary>
        /// Get the contents of this record
        /// </summary>
        IEnumerable<IDBData> Contents { get; }
    }
}
